import instance from "@/utils/request";

// 搜索列表
export function getSearchData(data:{
  count:number,
  limitNum:number,
  keyword:string
}){
  return instance({
    url:'/pro/search',
    method:'get',
    params:data
  })
}

// 产品详情数据
export function getHotSearchData(data:{proid:string}){
  return instance({
    url:'/pro/detail/:proid',
    method:'get',
    params:data
  })
}

// 热门搜索
export function getHotData(data?:null){
  return instance({
    url:'/pro/hotword',
    method:'get',
    params:data
  })
}